package org.jeecg.modules.business.warehouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.business.outbound.entity.vo.RepertorySimpleVO;
import org.jeecg.modules.business.warehouse.entity.WmsInReceiptTask;
import org.jeecg.modules.business.warehouse.entity.vo.WmsInReceiptTaskPageVO;
import org.jeecg.modules.business.warehouse.entity.vo.WmsInReceiptTaskQueryVO;

import java.util.List;

/**
 * @Description: 入库任务
 * @Author: jeecg-boot
 * @Date:   2023-07-28
 * @Version: V1.0
 */
public interface WmsInReceiptTaskMapper extends BaseMapper<WmsInReceiptTask> {
    IPage<WmsInReceiptTaskPageVO> getPage(
            @Param("page")IPage<WmsInReceiptTask> page,
            @Param("vo")WmsInReceiptTaskQueryVO vo
            );

    /**
     * 获取物料即时库存位置信息
     * @param wmsBasicMaterialId
     * @param batchCode
     * @param wmsBasicWarehouseId
     * @return
     */
    List<RepertorySimpleVO> getMaterialRepertoryInfo(@Param("materialId") String wmsBasicMaterialId, @Param("batchCode") String batchCode, @Param("wmsBasicWarehouseId")String wmsBasicWarehouseId);

    /**
     * 根据物料信息获取进行中的任务id
     * @param wmsBasicMaterialId
     * @param batchCode
     * @return
     */
    List<String> getProcessTaskIdByMaterialInfo(@Param("wmsBasicMaterialId") String wmsBasicMaterialId, @Param("batchCode")String batchCode);
}
